]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Only create default folders on the first start
authorSebastian Keller <skeller@gnome.org>
Sat, 24 Jan 2026 17:15:43 +0000 (18:15 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 26 Jan 2026 17:18:05 +0000 (17:18 +0000)
If all folders were removed, after a session restart the default folders
would have been recreated again, effectively preventing users from
using the app grid without folders.

Avoid this problem by only creating the default folders if the
folder-children setting has never been modified before.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8713
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4047>

js/ui/appDisplay.js

index 490e8d04ee244189b7df386e276486b3adb71dac..5a29634864b290d6139fdb4dc033d1e61de02821 100644 (file)
@@ -1403,7 +1403,7 @@ class AppDisplay extends BaseAppView {
     }
 
     _ensureDefaultFolders() {
-        if (this._folderSettings.get_strv('folder-children').length > 0)
+        if (this._folderSettings.get_user_value('folder-children') !== null)
             return;
 
         const appSys = Shell.AppSystem.get_default();